<?php
/**
 * Created by PhpStorm.
 * User: Vladimir
 * Date: 21.08.14
 * Time: 23:46
 */
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'user-form',
        'enableAjaxValidation'=>false,
    )); ?>

    <div class="row">
        <?php echo $form->labelEx($model,'password'); ?>
        <?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'password'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
        <input type="button" onclick="javascript:window.history.back()" name="Cancel" value="Cancel">
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->